﻿<UserControl x:Class="PM.UI.BugManager.ProjectBugInfomation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="640" d:DesignWidth="800">
    <UserControl.Background>
        <ImageBrush ImageSource="/PM.UI;Component/Images/BackGroundImage.png"></ImageBrush>
    </UserControl.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <StackPanel Orientation="Horizontal">
                <Image Source="/PM.UI;Component/Images/bug.png" Height="48" Width="48" Margin="10,0,0,0" HorizontalAlignment="Left"></Image>
                <ComboBox  Margin="10,0,0,0" FontSize="16" Foreground="White" Width="200"  VerticalAlignment="Center">项目信息</ComboBox>
                <Image Source="/PM.UI;Component/Images/bug_default.png" Height="48" Width="48" Margin="0,0,10,0" HorizontalAlignment="Right"></Image>
                <Image Source="/PM.UI;Component/Images/add_bug.png" Height="48" Width="48" Margin="0,0,10,0" HorizontalAlignment="Right"></Image>
                <Image Source="/PM.UI;Component/Images/info_bug.png" Height="48" Width="48" Margin="0,0,10,0" HorizontalAlignment="Right"></Image>
                <Image Source="/PM.UI;Component/Images/find_bug.png" Height="48" Width="48" Margin="0,0,10,0" HorizontalAlignment="Right"></Image>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <StackPanel Orientation="Horizontal">
                <Image Source="/PM.UI;Component/Images/project.png" Height="32" Width="32" Margin="10,0,0,0" HorizontalAlignment="Left"></Image>
                <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> 项目信息</TextBlock>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="2">
            <StackPanel Orientation="Horizontal">
                <Image Source="/PM.UI;Component/Images/all_bug.png" Margin="10,0,0,0" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                <TextBlock TextAlignment="Left" Margin="0,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> Bug总数：</TextBlock>
                <Image Source="/PM.UI;Component/Images/bug_go.png" Margin="10,0,0,0" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> 未修复的bug数：</TextBlock>
                <Image Source="/PM.UI;Component/Images/bug_link.png" Margin="10,0,0,0" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> 待审核的bug数：</TextBlock>
                <Image Source="/PM.UI;Component/Images/bug_error.png" Margin="10,0,0,0" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> 已解决的bug数：</TextBlock>
                <Image Source="/PM.UI;Component/Images/submitBug.png" ToolTip="添加新Bug" Margin="30,0,0,0" Height="32" Width="32"  HorizontalAlignment="Right"></Image>
                <TextBlock TextAlignment="Left" Margin="0,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center"> 提交新Bug：</TextBlock>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="3">
            <StackPanel Orientation="Horizontal">
                <StackPanel HorizontalAlignment="Left" Margin="10,0,0,0"  Orientation="Vertical">
                    <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
                    <Image Source="/PM.UI;Component/Images/project.png" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                    <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center">紧急待处理的Bug</TextBlock>
                    <TextBlock TextAlignment="Right" Margin="300,0,0,0" FontSize="16" Foreground="White" HorizontalAlignment="Right"  VerticalAlignment="Center">更多...</TextBlock>
                    </StackPanel>
                    <StackPanel>
                        <DataGrid Name="BugDataGridViewMust" RowHeaderWidth="27" AutoGenerateColumns="False" ColumnHeaderHeight="30" RowHeight="27" IsReadOnly="True" HorizontalGridLinesBrush="Cyan" 
                                 VerticalGridLinesBrush="#FFE0EAF6" BorderBrush="AliceBlue"  HeadersVisibility="Column" Background="Transparent"
                                FontFamily="微软雅黑" FontSize="14"   SelectionUnit="FullRow" SelectionMode="Single" SelectionChanged="DeductionDataGridView_SelectionChanged" Opacity="1" SelectiveScrollingGrid.SelectiveScrollingOrientation="None" >
                            <!--给整个表单元格添加颜色开始-->
                            <DataGrid.CellStyle>
                                <Style TargetType="DataGridCell">
                                    <Style.Triggers>
                                        <Trigger Property="IsSelected" Value="True">
                                            <Setter Property="Background" Value="SkyBlue"/>
                                        </Trigger>
                                    </Style.Triggers>
                                </Style>
                            </DataGrid.CellStyle>
                            <!--给整个表单元格添加颜色结束-->

                            <!--给整个表行添加颜色开始-->
                            <DataGrid.RowStyle >
                                <Style TargetType="DataGridRow">
                                    <Setter Property="Background" Value="Transparent"/>
                                    <Setter Property="Foreground" Value="White"/>
                                    <Style.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <!--当鼠标经过时 改变颜色-->
                                            <!--<Setter Property="Background" Value="SkyBlue"/>-->
                                            <Setter Property="Foreground" Value="SkyBlue"/>
                                        </Trigger>
                                        <Trigger Property="IsSelected" Value="True">
                                            <!--<Setter Property="Background" Value="LightGray"/>-->
                                            <Setter Property="Foreground" Value="Red"/>
                                        </Trigger>
                                    </Style.Triggers>
                                </Style>
                            </DataGrid.RowStyle>
                            <!--给整个表行添加颜色结束-->

                            <!--给整个表头添加颜色开始-->
                            <DataGrid.ColumnHeaderStyle>
                                <Style TargetType="DataGridColumnHeader">
                                    <Setter Property="Background">
                                        <Setter.Value>
                                            <ImageBrush ImageSource="/PM.UI;Component/Images/Deduction-12.png"></ImageBrush>
                                        </Setter.Value>
                                    </Setter>
                                    <Setter Property="Foreground" Value="White"/>
                                    <Setter Property="FontSize" Value="14" />
                                    <Setter Property="FontFamily" Value="微软雅黑"/>
                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                                </Style>
                            </DataGrid.ColumnHeaderStyle>
                            <!--给整个表头添加颜色结束-->

                            <DataGrid.Columns>
                                <DataGridTextColumn Header=""  MinWidth="20" />
                                <DataGridTextColumn Header="标题" MinWidth="300" Binding="{Binding ID}"/>
                                <DataGridTextColumn Header="优先级" MinWidth="70" Binding="{Binding QuestionType}"/>
                                <DataGridTextColumn Header="处理人" MinWidth="120" Binding="{Binding QuestionTitle}"/>
                            </DataGrid.Columns>
                        </DataGrid>
                    </StackPanel>
                </StackPanel>
                <StackPanel  Margin="5,0,0,0"  HorizontalAlignment="Left"  Width="10">
                </StackPanel>
                <StackPanel  Margin="5,0,0,0"  HorizontalAlignment="Left"   Orientation="Vertical">
                    <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
                        <Image Source="/PM.UI;Component/Images/project.png" Height="32" Width="32"  HorizontalAlignment="Left"></Image>
                        <TextBlock TextAlignment="Left" Margin="10,0,0,0" FontSize="16" Foreground="White"  VerticalAlignment="Center">最新Bug</TextBlock>
                        <TextBlock TextAlignment="Right" Margin="300,0,0,0" FontSize="16" Foreground="White" HorizontalAlignment="Right"  VerticalAlignment="Center">更多...</TextBlock>
                    </StackPanel>
                    <StackPanel>
                        <DataGrid Name="BugDataGridViewNew" RowHeaderWidth="27" AutoGenerateColumns="False" ColumnHeaderHeight="30" RowHeight="27" IsReadOnly="True" HorizontalGridLinesBrush="Cyan" 
                                 VerticalGridLinesBrush="#FFE0EAF6" BorderBrush="AliceBlue"  HeadersVisibility="Column" Background="Transparent"
                                FontFamily="微软雅黑" FontSize="14"   SelectionUnit="FullRow" SelectionMode="Single" SelectionChanged="DeductionDataGridView_SelectionChanged" Opacity="1" SelectiveScrollingGrid.SelectiveScrollingOrientation="None" >
                            <!--给整个表单元格添加颜色开始-->
                            <DataGrid.CellStyle>
                                <Style TargetType="DataGridCell">
                                    <Style.Triggers>
                                        <Trigger Property="IsSelected" Value="True">
                                            <Setter Property="Background" Value="SkyBlue"/>
                                        </Trigger>
                                    </Style.Triggers>
                                </Style>
                            </DataGrid.CellStyle>
                            <!--给整个表单元格添加颜色结束-->

                            <!--给整个表行添加颜色开始-->
                            <DataGrid.RowStyle >
                                <Style TargetType="DataGridRow">
                                    <Setter Property="Background" Value="Transparent"/>
                                    <Setter Property="Foreground" Value="White"/>
                                    <Style.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <!--当鼠标经过时 改变颜色-->
                                            <!--<Setter Property="Background" Value="SkyBlue"/>-->
                                            <Setter Property="Foreground" Value="SkyBlue"/>
                                        </Trigger>
                                        <Trigger Property="IsSelected" Value="True">
                                            <!--<Setter Property="Background" Value="LightGray"/>-->
                                            <Setter Property="Foreground" Value="Red"/>
                                        </Trigger>
                                    </Style.Triggers>
                                </Style>
                            </DataGrid.RowStyle>
                            <!--给整个表行添加颜色结束-->

                            <!--给整个表头添加颜色开始-->
                            <DataGrid.ColumnHeaderStyle>
                                <Style TargetType="DataGridColumnHeader">
                                    <Setter Property="Background">
                                        <Setter.Value>
                                            <ImageBrush ImageSource="/PM.UI;Component/Images/Deduction-12.png"></ImageBrush>
                                        </Setter.Value>
                                    </Setter>
                                    <Setter Property="Foreground" Value="White"/>
                                    <Setter Property="FontSize" Value="14" />
                                    <Setter Property="FontFamily" Value="微软雅黑"/>
                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                                </Style>
                            </DataGrid.ColumnHeaderStyle>
                            <!--给整个表头添加颜色结束-->

                            <DataGrid.Columns>
                                <DataGridTextColumn Header=""  MinWidth="20" />
                                <DataGridTextColumn Header="标题" MinWidth="300" Binding="{Binding ID}"/>
                                <DataGridTextColumn Header="优先级" MinWidth="70" Binding="{Binding QuestionType}"/>
                                <DataGridTextColumn Header="分配人" MinWidth="120" Binding="{Binding QuestionTitle}"/>
                            </DataGrid.Columns>
                        </DataGrid>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
